

export default {
    namespaced : true,
    state: {
        zoom: 5,
        mousePoint: [],
    },
    mutations: {
        zoomUpdate(state: any, data: any) {
            state.zoom += data;
        },
        mousePointUpdate(state: any, data: any) {
            state.mousePoint = data;
        },
    },
    actions: {
        zoomUpdate(state: any, data: any) {
            state.commit('zoomUpdate', data);
        },
        mousePointUpdate(state: any, data: any) {
            state.commit('mousePointUpdate', data);
        },
    },
};
